<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<script>
	var notLogon = ${empty user};
	if (notLogon) {
		//location.href = '${ctx}/login?error=nologon';
	}
</script>
<style>
#round {
    border: 5px solid #dedede;
    -moz-border-radius: 15px;      /* Gecko browsers */
    -webkit-border-radius: 15px;   /* Webkit browsers */
    border-radius:15px;            /* W3C syntax */
}
</style>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看当前流程图</title>
</head>
<body>
<!-- 1.获取到规则流程图 -->
<img style="position: absolute;top: 30px;left: 30px;" src="${ctx }/workflow/resource/deployment?deploymentId=${processInstance.deploymentId}&resourceName=${processDefinition.diagramResourceName}">

<!-- 2.根据当前活动的坐标，动态绘制DIV -->
<c:forEach var="map" items="${activityInfos}">
	<c:if test="${map.currentActiviti==true}">
		<div style="position: absolute;border:3px solid red;border-radius:10px;
		top:${map.y+30}px;
		left: ${map.x+30 }px;
		width: ${map.width-3 }px;
		height:${map.height-3}px;"></div>
	</c:if>
</c:forEach>
</body>
</html>